/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/home',
    component: () => import('@/views/layouts/index'),
    redirect: { name: 'Home' }, // 修改重定向方式
    meta: {
      title: '首页',
      keepAlive: true
    },
    children: [
      {
        path: '',
        name: 'Home',
        component: () => import('@/views/home/index'),
        meta: { title: '首页', keepAlive: true }
      },
      {
        path: '/search',
        name: 'Search',
        component: () => import('@/views/home/search'),
        meta: { title: '找产品', keepAlive: false }
      },
      {
        path: '/store',
        name: 'Store',
        component: () => import('@/views/home/store'),
        meta: { title: '积分商城', keepAlive: false }
      },
      {
        path: '/about',
        name: 'About',
        component: () => import('@/views/home/about'),
        meta: { title: '关于我', keepAlive: true }
      },
      {
        path: '/quanzi',
        name: 'Quanzi',
        component: () => import('@/views/home/quanzi'),
        meta: { title: '圈子', keepAlive: false }
      },
      {
        path: '/mine',
        name: 'Mine',
        component: () => import('@/views/home/mine'),
        meta: { title: '我的', keepAlive: false }
      },

    ]
  },
  {
    path: '/company',
    name: 'Company',
    component: () => import('@/views/company/index'),
    meta: { title: '企业信息', keepAlive: false, isBack: false }
  },
  {
    path: '/product',
    name: 'Product',
    component: () => import('@/views/product/index'),
    meta: { title: '商品信息', keepAlive: false }
  },
  {
    path: '/fabu',
    name: 'Fabu',
    component: () => import('@/views/home/fabu'),
    meta: { title: '圈子', keepAlive: false }
  },
  {
    path: '/fbinfo',
    name: 'Fbinfo',
    component: () => import('@/views/home/fbinfo'),
    meta: { title: '信息详情', keepAlive: false }
  },
  {
    path: '/myquanzi',
    name: 'Myquanzi',
    component: () => import('@/views/home/myquanzi'),
    meta: { title: '我的圈子', keepAlive: false }
  },
  {
    path: '/companylist',
    name: 'companylist',
    component: () => import('@/views/company/list'),
    meta: { title: '我的圈子', keepAlive: false }
  },
  {
    path: '/report',
    name: 'report',
    component: () => import('@/views/report/index'),
    meta: { title: '调研报告', keepAlive: false }
  },

  {
    path: '/zpinfo',
    name: 'zpinfo',
    component: () => import('@/views/zpinfo/index'),
    meta: { title: '招聘信息', keepAlive: false }
  },

  {
    path: '/dkinfo',
    name: 'dkinfo',
    component: () => import('@/views/report/dkinfo'),
    meta: { title: '贷款信息', keepAlive: false }
  },
  {
    path: '/erpinfo',
    name: 'erpinfo',
    component: () => import('@/views/report/erpinfo'),
    meta: { title: '商圈云ERP', keepAlive: false }
  },
  {
    path: '/hdinfo',
    name: 'hdinfo',
    component: () => import('@/views/report/hdinfo'),
    meta: { title: '活动信息', keepAlive: false }
  },

  {
    path: '/zbinfo',
    name: 'zbinfo',
    component: () => import('@/views/report/zbinfo'),
    meta: { title: '商圈云ERP', keepAlive: false }
  },
  {
    path: '/zpSuccess',
    name: 'zpSuccess',
    component: () => import('@/views/zpinfo/success'),
    meta: { title: '成功通知', keepAlive: false }
  },
  {
    path: '/success',
    name: 'success',
    component: () => import('@/views/report/success'),
    meta: { title: '成功通知', keepAlive: false }
  },

  {
    path: '/mallproduct',
    name: 'mallproduct',
    component: () => import('@/views/mall/mallproduct'),
    meta: { title: '商城产品', keepAlive: false }
  },

  {
    path: '/confirmOrder',
    name: 'confirmOrder',
    component: () => import('@/views/mall/confirmOrder'),
    meta: { title: '确认订单', keepAlive: true , isBack: true }
  },

  {
    path: '/addAddress',
    name: 'addAddress',
    component: () => import('@/views/mall/addAddress'),
    meta: { title: '确认订单', keepAlive: false }
  },

  {
    path: '/addressList',
    name: 'addressList',
    component: () => import('@/views/mall/addressList'),
    meta: { title: '确认订单', keepAlive: true }
  },

  {
    path: '/pay',
    name: 'pay',
    component: () => import('@/views/mall/pay'),
    meta: { title: '确认订单', keepAlive: false }
  },

  {
    path: '/storepay',
    name: 'storepay',
    component: () => import('@/views/home/storepay'),
    meta: { title: '确认订单', keepAlive: false }
  },

  {
    path: '/myOrder',
    name: 'myOrder',
    component: () => import('@/views/mall/myOrder'),
    meta: { title: '确认订单', keepAlive: false }
  },

  {
    path: '/modifyOrder',
    name: 'modifyOrder',
    component: () => import('@/views/mall/modifyOrder'),
    meta: { title: '修改订单', keepAlive: false }
  },

  {
    path: '/orderDetail',
    name: 'orderDetail',
    component: () => import('@/views/mall/orderDetail'),
    meta: { title: '订单详情', keepAlive: false }
  },

  {
    path: '/confirmJfOrder',
    name: 'confirmJfOrder',
    component: () => import('@/views/home/confirmJfOrder'),
    meta: { title: '积分兑换', keepAlive: true,isBack: true }
  },
  {
    path: '/jfStoreProduct',
    name: 'jfStoreProduct',
    component: () => import('@/views/home/jfStoreProduct'),
    meta: { title: '积分兑换', keepAlive: false }
  },
  {
    path: '/agencychatlist',
    name: 'agencychatlist',
    component: () => import('@/views/home/agencychatlist'),
    meta: { title: '留言记录', keepAlive: false }
  },
  {
    path: '/applysamplelist',
    name: 'applysamplelist',
    component: () => import('@/views/home/applysamplelist'),
    meta: { title: '申请记录', keepAlive: false }
  },
  {
    path: '/kefu',
    name: 'kefu',
    component: () => import('@/views/home/kefu'),
    meta: { title: '客服', keepAlive: false }
  }
]
